<?php
class teamM{
	private $id;
	private $nombre;
	private $ualta;
	private $falta;
	private $umodif;
	private $fmodif;
	private $baja;
	private $ubaja;
	private $fbaja;

	public function get(){
		return $this;
	}

	public function set($obj){
		$this->id=$obj->id;
		$this->nombre=$obj->nombre;
		$this->ualta=$obj->ualta;
		$this->falta=$obj->falta;
		$this->umodif=$obj->umodif;
		$this->fmodif=$obj->fmodif;
		$this->baja=$obj->baja;
		$this->ubaja=$obj->ubaja;
		$this->fbaja=$obj->fbaja;
	}

    public function getId(){
		return $this->id;
	}

	public function setId($id){
		$this->id = $id;
	}

	public function setNombre($nombre){
		$this->nombre=$nombre;
	}
	public function getNombre(){
		return $this->nombre;
	}

	public function setUAlta($ualta){
		$this->ualta=$ualta;
	}

	public function getUAlta(){
		return $this->ualta;
	}

	public function setFalta($falta){
		$this->falta = $falta;
	}

	public function getFalta(){
		return $this->falta;
	}

	public function setUmodif($umodif){
		$this->umodif=$umodif;
	}

	public function getUmodif(){
		return $this->umodif;
	}

	public function setFmodif($fmodif){
		$day=(int)substr($fmodif,0,2);
		$month=(int)substr($fmodif,3,2);
		$year=(int)substr($fmodif,6,4);
		$this->$fmodif=mktime($year,$month,$day,0,0,0);
	}

	public function getFmodif(){
		return date('dd/MM/yyy',$this->fmodif);
	}

	public function setBaja($baja){
		$this->baja=$baja;
	}

	public function getBaja(){
		return $this->baja;
	}

	public function setUbaja($ubaja){
		$this->ubaja=$ubaja;
	}

	public function getUbaja(){
		return $this->ubaja;
	}

	public function setFbaja($fbaja){
		$day=(int)substr($fbaja,0,2);
		$month=(int)substr($fbaja,3,2);
		$year=(int)substr($fbaja,6,4);
		$this->fbaja=mktime($year,$month,$day,0,0,0);
	}

	public function getFbaja(){
		return date('dd/MM/yyy',$this->fbaja);
	}

}